﻿<UserControl x:Class="Views.ViewMethodeDeCalcul"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:VMtxgar="clr-namespace:OMANE.Modules.TauxGarantis.ViewModels"
             xmlns:Theme="clr-namespace:OMANE.Common.UI.Theme;assembly=OMANE.Common.UI.Theme"
             mc:Ignorable="d" 
             DataContext="{Binding Source={x:Static VMtxgar:Locator.ViewModelMethodeDeCalculStatic}}"
             >
	<UserControl.Resources>
		<Storyboard x:Key="PrincipeAnim"/>
		<Storyboard x:Key="PrincipeAnim2"/>
	</UserControl.Resources>
	
	<!--<UserControl.DataContext>
		<VMtxgar:ViewModelMethodeDeCalcul/>
	</UserControl.DataContext>-->
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
		<GroupBox Grid.Row="0" Header="Choix de la Méthode de Calcul" Style="{DynamicResource OMANE_GpeBox}">
			<StackPanel Margin="5,0,0,0">
               <RadioButton Name="equiRBT"  Content="Equilibre tarifaire" HorizontalAlignment="Left" Margin="0,20,0,0" IsChecked="{Binding IsEquilibreTarifaire}" />
			   <RadioButton Name="projRBT"  Content="Projection des comptes" HorizontalAlignment="Left" Margin="0,20" IsChecked="{Binding IsProjectionDesCompte}" />
			</StackPanel>
		</GroupBox>
        <GroupBox Grid.Row="1" Header="Initialisation des  parametres" Style="{DynamicResource OMANE_GpeBox}">
			<Grid Margin="5,20,0,20">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Margin="0,0,20,0" 
                               HorizontalAlignment="Left" 
                               VerticalAlignment="Center" 
                               Text="Charger / Enregistrer un modèle de paramétrage" />
                    <Theme:OMANEbtn Grid.Column="1" 
                                Height="24"
                                Width="24"
                                BorderThickness="0"
                                Style="{StaticResource btnTool_OMANE_V3}"
                                Icon="{Binding Source={x:Static Theme:StandardIcons.BOUTON_PARCOURIR}}"
                                Padding="5,1" Command="{Binding LoadParametres, Mode=OneWay}" 
                                Name="BtnLoadParametres" Cursor="Hand">
                        <Theme:OMANEbtn.ToolTip>
                            <ToolTip>
                                <TextBlock>Charger un fichier de paramétrage</TextBlock>
                            </ToolTip>
                        </Theme:OMANEbtn.ToolTip>
                    </Theme:OMANEbtn>
                    <Theme:OMANEbtn Grid.Column="2"
                            Margin="0,0,5,0"
                            Height="24"
                            Width="24"
                            BorderThickness="0"
                            HorizontalAlignment="Right" 
                            VerticalAlignment="Center" 
                            Padding="5,1" Command="{Binding SaveParametres, Mode=OneWay}" Name="BtnSaveParametres"
                            Style="{StaticResource btnTool_OMANE_V3}"
                            Icon="{Binding Source={x:Static Theme:StandardIcons.BOUTON_ENREGISTRER}}" Cursor="Hand">
                        <Theme:OMANEbtn.ToolTip>
                            <ToolTip>
                                <TextBlock>Enregistrer un fichier de paramétrage</TextBlock>
                            </ToolTip>
                        </Theme:OMANEbtn.ToolTip>
                    </Theme:OMANEbtn>
                </StackPanel>
            </Grid>
		</GroupBox>
        <GroupBox Grid.Row="2" 
                  Header="Description" 
                  Style="{DynamicResource OMANE_GpeBox}" >
			<Grid x:Name="grid" Margin="0,5">
				<FlowDocumentReader  ViewingMode="Scroll"
                                     FontWeight="Regular"
                                     IsTwoPageViewEnabled="False" 
                                     IsPrintEnabled="False"  
                                     IsFindEnabled="False"  MinZoom="0.5"  >
					<FlowDocumentReader.Visibility>
						<Binding Path="IsChecked" ElementName="equiRBT">
							<Binding.Converter>
								<BooleanToVisibilityConverter />
							</Binding.Converter>
						</Binding>
					</FlowDocumentReader.Visibility>
					<FlowDocument>
						<Paragraph FontSize="26.6666666666667" FontFamily="Calibri" Margin="0.329999999999998,6.4,0,0" TextAlignment="Left"><Span Foreground="#FF571E74" Language="fr-fr"><Run Text="Principe de la "/></Span><Span Foreground="#FF571E74" Language="fr-fr"><Run Text="méthode « "/></Span><Span Foreground="#FFE2006A" Language="fr-fr"><Run Text="Equilibre tarifaire"/></Span><Span Foreground="#FF571E74" Language="fr-fr"><Run Text=" "/></Span><Span Foreground="#FF571E74" Language="fr-fr"><Run Text="»"/></Span><Span Foreground="#FF571E74" Language="fr-fr"><Run Text=" :"/></Span></Paragraph>
						<Paragraph FontSize="16" FontFamily="Calibri" Margin="40.33,6.4,0,0" TextAlignment="Left"/>
						<List MarkerStyle="Box" FontSize="25" Margin="0" Padding="0">
							<ListItem Margin="48,0,0,0">
								<Paragraph FontSize="25.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Left"><Run FontSize="21.3333333333333" Language="fr-fr" Text="Segmenter"/><Span Foreground="Black" FontSize="21.3333333333333" Language="fr-fr"><Run Text=" le portefeuille en segments de risque homogène"/></Span></Paragraph>
							</ListItem>
						</List>
						<Paragraph FontSize="25.3333333333333" FontFamily="Calibri" Margin="48,0,0,0" TextAlignment="Left"/>
						<List MarkerStyle="Box" FontSize="25" Margin="0" Padding="0">
							<ListItem Margin="48,0,0,0">
								<Paragraph FontSize="25.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"><Span Foreground="Black" FontSize="21.3333333333333" Language="fr-fr"><Run Text="Calculer sur chaque segment, "/></Span><Span Foreground="Black" FontSize="21.3333333333333" Language="fr-fr"><Run Text="le prix réel du risque hors frais et chargements techniques (prime pure) en s'appuyant sur l'assuré moyen du segment. L'assuré moyen est estimé à partir de l'encours connu de la banque à"/></Span><Span Foreground="Black" FontSize="21.3333333333333" Language="fr-fr"><Run Text=" la date de calcul"/></Span></Paragraph>
							</ListItem>
						</List>
						<Paragraph FontSize="25.3333333333333" FontFamily="Calibri" Margin="48,0,0,0" TextAlignment="Justify"/>
						<List MarkerStyle="Box" FontSize="25" Margin="0" Padding="0">
							<ListItem Margin="48,0,0,0">
								<Paragraph FontSize="25.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Left"><Span Foreground="Black" FontSize="21.3333333333333" Language="fr-fr"><Run Text="D"/></Span><Span Foreground="Black" FontSize="21.3333333333333" Language="fr-fr"><Run Text="é"/></Span><Span Foreground="Black" FontSize="21.3333333333333" Language="fr-fr"><Run Text="terminer un taux garanti tel que le rapport entre :"/></Span></Paragraph>
							</ListItem>
						</List>
						<Paragraph FontSize="25.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Left"/>
						<List MarkerStyle="Disc" Margin="0" Padding="0" StartIndex="869">
							<ListItem Margin="72,0,0,0">
								<Paragraph FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"><Span Foreground="Black" FontWeight="Bold" Language="fr-fr"><Run Text="la moyenne actuarielle, sur tous les segments, des primes pures recalculé"/></Span><Span Foreground="Black" FontWeight="Bold" Language="fr-fr"><Run Text="es"/></Span></Paragraph>
								<List MarkerStyle="Disc" Margin="0" Padding="0" StartIndex="869">
									<ListItem Margin="84.47,0,0,0">
										<Paragraph FontSize="32" FontFamily="Calibri" Margin="0" TextAlignment="Left"><Span Foreground="Black" FontWeight="Bold" Language="fr-fr"><Run Text="ET"/></Span></Paragraph>
									</ListItem>
								</List>
							</ListItem>
							<ListItem Margin="72,0,0,0">
								<Paragraph FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"><Span Foreground="Black" FontWeight="Bold" Language="fr-fr"><Run Text="la moyenne actuarielle, sur tous les segments, des primes commerciales issues de la grille tarifaire nettes de frais de gestion et de chargements d'acquisition (taux garanti)"/></Span></Paragraph>
								<List MarkerStyle="Disc" Margin="0" Padding="0" StartIndex="869">
									<ListItem Margin="84.47,0,0,0">
										<Paragraph FontWeight="Bold" FontSize="32" FontFamily="Calibri" Margin="0" TextAlignment="Left"><Span Foreground="Black" Language="fr-fr"><Run Text="SOIT"/></Span></Paragraph>
									</ListItem>
								</List>
							</ListItem>
							<ListItem Margin="72,0,0,0">
								<Paragraph FontSize="14.6666666666667" FontFamily="Calibri" Margin="0" TextAlignment="Justify"><Span Foreground="Black" FontWeight="Bold" FontSize="21.3333333333333" Language="fr-fr"><Run Text="égal à 1 diminué"/></Span><Span Foreground="Black" FontWeight="Bold" FontSize="21.3333333333333" Language="fr-fr"><Run Text=" d'un chargement"/></Span><Span Foreground="Black" FontWeight="Bold" FontSize="21.3333333333333" Language="fr-fr"><Run Text=" de sécurité (par exemple 20%) fixé"/></Span><Span Foreground="Black" FontWeight="Bold" FontSize="21.3333333333333" Language="fr-fr"><Run Text=" par Natixis Assurances."/></Span></Paragraph>
							</ListItem>
						</List>
						<Paragraph><Run Text=""/></Paragraph>
					</FlowDocument>
				</FlowDocumentReader>
				<FlowDocumentReader ViewingMode="Scroll"
                                    FontWeight="Regular"
                                    IsTwoPageViewEnabled="False" 
                                    IsPrintEnabled="False"  
                                    IsFindEnabled="False" MinZoom="0.5" >
				<FlowDocumentReader.Visibility>
						<Binding Path="IsChecked" ElementName="projRBT">
							<Binding.Converter>
								<BooleanToVisibilityConverter />
							</Binding.Converter>
						</Binding>
					</FlowDocumentReader.Visibility>
				
				<FlowDocument >
				<Paragraph FontWeight="Bold" FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"><Span Foreground="#FF571E74" FontWeight="Normal" FontSize="26.6666666666667" Language="fr-fr"><Run Text="Principe de la "/></Span><Span Foreground="#FF571E74" FontWeight="Normal" FontSize="26.6666666666667" Language="fr-fr"><Run Text="méth"/></Span><Run Foreground="#FF571E74" FontWeight="Normal" FontSize="26.6666666666667" Language="fr-fr" Text="ode"/><Span Foreground="Black" Language="fr-fr"><Run Text=" « "/></Span><Span Foreground="#FFE2006A" FontWeight="Normal" FontSize="26.6666666666667" Language="fr-fr"><Run Text="Projection"/></Span><Span Foreground="Black" Language="fr-fr"><Run Text=" "/></Span><Span Foreground="Black" Language="fr-fr"><Run Text="»"/></Span><Span Foreground="Black" Language="fr-fr"><Run Text=" :"/></Span></Paragraph>
				<Paragraph FontWeight="Bold" FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"/>
				<List MarkerStyle="Disc" Margin="0" Padding="0">
					<ListItem Margin="48,0,0,0">
						<Paragraph FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Left"><Run Language="fr-fr" Text="Plusieurs générations successives d'emprunteurs sont empilées avec des hypothèses sur l'évolution des Paramètres"/></Paragraph>
					</ListItem>
				</List>
				<Paragraph FontSize="21.3333333333333" FontFamily="Calibri" Margin="48,0,0,0" TextAlignment="Left"/>
				<List MarkerStyle="Disc" Margin="0" Padding="0">
					<ListItem Margin="48,0,0,0">
						<Paragraph FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Left"><Run Language="fr-fr" Text="Le taux garanti est alors solution d'une optimisation des résultats ainsi projetés selon les critères suivants :"/></Paragraph>
					</ListItem>
				</List>
				<Paragraph FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Left"/>
				<List MarkerStyle="Disc" Margin="0" Padding="0" StartIndex="869">
					<ListItem Margin="72,0,0,0">
						<Paragraph FontWeight="Bold" FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"><Run Language="fr-fr" Text="La valeur actuelle des résultats futurs de la géné"/><Span Foreground="Black" Language="fr-fr"><Run Text="ration N"/></Span></Paragraph>
					</ListItem>
				</List>
				<Paragraph FontWeight="Bold" FontSize="21.3333333333333" FontFamily="Calibri" Margin="72,0,0,0" TextAlignment="Justify"/>
				<List MarkerStyle="Disc" Margin="0" Padding="0" StartIndex="869">
					<ListItem Margin="72,0,0,0">
						<Paragraph FontWeight="Bold" FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"><Run Language="fr-fr" Text="Le taux de rendement interne des "/><Span Foreground="Black" Language="fr-fr"><Run Text="opérations d'assurance de la géné"/></Span><Span Foreground="Black" Language="fr-fr"><Run Text="ration N"/></Span></Paragraph>
					</ListItem>
				</List>
				<Paragraph FontWeight="Bold" FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"/>
				<List MarkerStyle="Disc" Margin="0" Padding="0" StartIndex="869">
					<ListItem Margin="72,0,0,0">
						<Paragraph FontWeight="Bold" FontSize="21.3333333333333" FontFamily="Calibri" Margin="0" TextAlignment="Justify"><Run Language="fr-fr" Text="La valeur actuelle des résultats futurs de plusieurs générations de prêts, après impôt et coût d'immobilisation des fonds propres (valeur de générations de prê"/><Span Foreground="Black" Language="fr-fr"><Run Text="ts croissant au rythme de 5% tous les ans sur 20 ans, e"/></Span><Span Foreground="Black" Language="fr-fr"><Run Text="t stables au-delà"/></Span><Span Foreground="Black" Language="fr-fr"><Run Text=")."/></Span></Paragraph>
					</ListItem>
				</List>
			</FlowDocument></FlowDocumentReader>
			</Grid>
		</GroupBox>
            
	</Grid>
</UserControl>
